FROM openjdk:17
ARG VERSION=""
ENV JAVA OPTS=""
ENV PARAMS=""
RUN cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo 'Asia/Shanghai'>/etc/timezone
ADD docker-0.0.1-SNAPSHOT.jar /app.jar
ENTRYPOINT ["sh","-c","java $JAVA_OPTS -jar /app.jar $PARAMS"]
